// 是否是移动端
const isMobile = () => {
  const ua = navigator.userAgent;
  return /Android|webOS|iPhone|iPad|BlackBerry/i.test(ua);
};
